﻿namespace Bundler
{

    public class BundleOptions
    {
        public BundleOptions()
        {
            Css = new CssOptions();
            Js = new JsOptions();

            var httpModel = HttpHelper.GetHttpModel();
            if (httpModel != null)
            {
                EnableOptimizations = !httpModel.IsDebuggingEnabled;
            }
        }

        public bool DisableOldIeCompatability { get; set; }
        public bool EnableLazyOptimization { get; set; }
        public bool EnableOptimizations { get; set; }
        public CssOptions Css { get; set; }
        public JsOptions Js { get; set; }
        public bool IncludeFileExtensionInAlias { get; set; }
        public bool IncludeUniqueQueryStringInDebug { get; set; }
    }
}